package com.hotelManagerSystem.service.impl;

import com.hotelManagerSystem.mapper.RoleDepartmentMapper;
import com.hotelManagerSystem.model.RoleDepartment;
import com.hotelManagerSystem.service.IRoleDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleDepartmentServiceImpl extends ServiceImpl<RoleDepartmentMapper, RoleDepartment> implements IRoleDepartmentService {
    @Autowired
    RoleDepartmentMapper roleDepartmentMapper ;
    @Override
    public boolean deleteRoleDepartmentByRoleId(int roleId) {
        return roleDepartmentMapper.deleteRoleDepartmentByRoleId(roleId);
    }

}
